package com.cloudOffice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudOffice.model.system.SysMenu;
import com.cloudOffice.vo.system.AssignMenuVo;
import com.cloudOffice.vo.system.RouterVo;

import java.util.List;

public interface SysMenuService extends IService<SysMenu> {
	
	/**
	 * 菜单树形数据
	 */
	List<SysMenu> findNodes();
	
	void deleteId(Long id);
	
	List<SysMenu> findSysMenuByRoleId(Long roleId);
	
	void doAssign(AssignMenuVo assignMenuVo);
	
	/**
	 * 获取用户菜单
	 */
	List<RouterVo> findUserMenuList(Long userId);
	
	/**
	 * 获取用户按钮权限
	 */
	List<String> findUserPermsList(Long userId);
}